<script lang="ts" setup>
import type {LoadMore} from '@/typings/components'

const {isClick} = defineProps<{
    status: LoadMore
    isClick?: boolean
}>()

const contentText = $ref({
    contentdown: isClick ? '点击查看更多' : '下拉查看更多',
    contentrefresh: '加载中',
    contentnomore: '没有更多啦'
})
</script>

<template>
    <uni-load-more :status="status" :content-text="contentText"/>
</template>

<style lang="scss" scoped>
.load_more {
    display: flex;
    font-size: 24rpx;
    color: #7f7f7f;
    justify-content: center;
    margin-bottom: 24rpx;
}
</style>
